/*
 *    Copyright (c) 2018-2025, nart All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: nart
 */

package com.nai365.nart.product.entity;


import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 藏品购买提醒
 *
 * @author 罗光林
 * @date 2022-07-18 11:57:18
 */
@Data
@TableName("pms_spu_remind")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "藏品购买提醒")
public class SpuRemind extends Model<SpuRemind> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "主键")
	private Long id;

	/**
	 * 用户id
	 */
	@JsonIgnore
	@ApiModelProperty(value = "用户id")
	private Long userId;

	/**
	 * 藏品id
	 */
	@ApiModelProperty(value = "藏品id")
	private Long spuId;

	/**
	 * 优先购提醒
	 */
	@ApiModelProperty(value = "优先购提醒")
	private Boolean preemption;

	/**
	 * 抽签提醒
	 */
	@ApiModelProperty(value = "抽签提醒")
	private Boolean draw;

	/**
	 * 中签提醒
	 */
	@ApiModelProperty(value = "中签提醒")
	private Boolean ballot;

	/**
	 * 抢购提醒
	 */
	@ApiModelProperty(value = "抢购提醒")
	private Boolean purchase;

	/**
	 * 创建时间
	 */

	@TableField(fill = FieldFill.INSERT)
	@ApiModelProperty(value = "创建时间")
	@JsonIgnore
	private LocalDateTime createTime;

	/**
	 * 修改时间
	 */
	@TableField(fill = FieldFill.UPDATE)
	@ApiModelProperty(value = "修改时间")
	@JsonIgnore
	private LocalDateTime updateTime;

}
